package com.szqhyxj.youxiangju.biz.push.service;

import android.content.Context;

import com.igexin.sdk.PushManager;

/**
 * Created by xiaoqing姑娘 on 2018/7/31.
 */

public class PushUtil{

    /**
     * 个推初始化
     * @param context
     */
    public static void init(Context context){
    //    com.getui.demo.DemoPushService 为第三方自定义推送服务
        PushManager.getInstance().initialize(context.getApplicationContext(), GeTuiPushService.class);
        PushManager.getInstance().registerPushIntentService(context.getApplicationContext(), GeTuiIntentService.class);
    }

    public static void bindAlias(Context context,String Alias){
        //绑定别名
        PushManager.getInstance().bindAlias(context,Alias);
        //PushManager.getInstance().alias
    }

//    public static boolean isGT(){
//        return PushManager.getInstance().isPushTurnedOn(BaseApplication.getApplication());
//    }
}
